home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- set mySprite to the spriteNum of me
- set myTextMember to the name of member the member of sprite (mySprite - 1)
- case myTextMember of
- "fDaysIntervallo":
- set MaxValore to 366
- "fHoursIntervallo":
- set MaxValore to 23
- "fMinutesIntervallo":
- set MaxValore to 59
- "fStartMonth":
- set MaxValore to 12
- "fStartDay":
- set MaxValore to 31
- "fStartYear":
- set MaxValore to 3000
- "fStartHour":
- set MaxValore to 23
- "fStartMinute":
- set MaxValore to 59
- end case
- set Valore to value(field myTextMember)
- if Valore >= MaxValore then
- exit
- end if
- if the rollOver <> mySprite then
- exit
- end if
- set myBtnUp to the name of member the member of sprite mySprite
- if Valore < MaxValore then
- set the member of sprite mySprite to BtnDw(myBtnUp)
- updateStage()
- set Valore to Valore + 1
- put Valore into field myTextMember
- end if
- repeat with i = 1 to 5000
- if the mouseUp then
- set the member of sprite mySprite to myBtnUp
- updateStage()
- exit
- end if
- end repeat
- repeat while the stillDown and (Valore < MaxValore)
- if the rollOver = mySprite then
- set the member of sprite mySprite to BtnDw(myBtnUp)
- set Valore to value(field myTextMember) + 1
- if Valore > MaxValore then
- exit repeat
- end if
- put Valore into field myTextMember
- else
- set the member of sprite mySprite to myBtnUp
- end if
- updateStage()
- end repeat
- set the member of sprite mySprite to myBtnUp
- updateStage()
- end
-